﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Trading.Purchase.GoodsPurchasePaidRecord;
using BCDto.Trading.Purchase.GoodsPurchasePaidRecord;
using BCEntity.Trading.Purchase.GoodsPurchasePaidRecord;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Trading.Purchase.GoodsPurchasePaidRecord
{
    /// <summary>
    /// 商品采购支付记录
    /// </summary>
    public interface IGoodsPurchasePaidRecordService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="goodsPurchasePaidRecordId">商品采购支付记录Id</param>
        bool Exists(long goodsPurchasePaidRecordId);
        /// <summary>
        /// 添加商品采购支付记录
        /// </summary>
        /// <param name="requestDto">商品采购支付记录信息</param>
        GoodsPurchasePaidRecordDto Add(GoodsPurchasePaidRecordRequestDto requestDto);
        /// <summary>
        /// 更新商品采购支付记录
        /// </summary>
        /// <param name="putDto">商品采购支付记录信息</param>
        GoodsPurchasePaidRecordDto Update(GoodsPurchasePaidRecordPutDto putDto);
        /// <summary>
        /// 删除商品采购支付记录
        /// </summary>
        /// <param name="goodsPurchasePaidRecordId">商品采购支付记录Id</param>
        bool Delete(long goodsPurchasePaidRecordId);
        /// <summary>
        /// 获取商品采购支付记录
        /// </summary>
        /// <param name="goodsPurchasePaidRecordId">商品采购支付记录Id</param>
        GoodsPurchasePaidRecordDto Get(long goodsPurchasePaidRecordId);
        /// <summary>
        /// 获取商品采购支付记录分页列表
        /// </summary>
        /// <param name="goodsPurchaseId">商品采购单Id</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">商品采购支付记录每页数据条数</param>
        PageableList<GoodsPurchasePaidRecordDto> Query(long goodsPurchaseId, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}